package cn.hiapi.publics.vo;

import cn.hiapi.basic.entity.BasicEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * @author AdinZ
 * @date 2022/12/16 23:35
 */
@Setter
@Getter
public class ShopBaseVo extends BasicEntity {
    @ApiModelProperty("店铺id")
    private Long id;
    @ApiModelProperty("店铺名字")
    private String name;
    @ApiModelProperty("店铺logo")
    private String logo;

    private BigDecimal lng;
    private BigDecimal lat;

    private double distance;

    private String category;

    private String address;

    private BigDecimal score = BigDecimal.ZERO;

    @Setter
    @Getter
    public static class DistanceVo extends BasicEntity {
        private double value;
        private String unit;


        public DistanceVo(double value, String unit) {
            this.value = value;
            this.unit = unit;
        }
    }

}
